<?php use_Helper("jQuery"); ?>
<?php slot('catalog_menu') ?>
<?php include_component('catalog','categorymenu') ?>
<?php end_slot() ?>

<?php
slot('breadcrumbs');

echo 'Каталог / ';

if(isset($cats))
{
	$curcat = current($cats);
	krsort($cats);
	foreach($cats as $cat)
	{

		echo link_to($cat->getTitle(),'catalog/index?catid='.$cat->getId()	).' / ';
	}
	echo $prod->getTitle();
}
end_slot();
?>

<script type='text/javascript'>
function showpath()
{
<?php
if(count($cats))
	foreach($cats as $cat)
		echo '$("#'.$cat->getId().'").show();';
?>
}
</script>

<!-- ТОВАР -->
<!-- link_to( , 'catalog/showproduct?p_id='.$prod->getId())  -->
<table>
	<tr>
		<th>Название</th>
		<td><?php echo $prod['title'] ?></td>
	</tr>
	<tr>
		<th>Описание</th>
		<td><?php echo $prod['body'] ?></td>
	</tr>
	<tr>
		<th>Изображение</th>
		<td><?php if ($prod['img']) { ?> <img src="/uploads/products/thumbnail_100_100_o/<?php echo $prod['img'] ?>"
			title="<?php echo $prod['title'] ?>" /><?php } else { echo 'отсутствует'; } ?></td>
	</tr>
	<tr>
		<th>Цена (грн)</th>
		<td><?php echo sprintf('%0.2f', $prod['price']==NULL ? $prod['price_usd']*$course : $prod['price']) ?></td>			
	</tr>
	<tr>
		<th>Цена (usd)</th>
		<td><?php echo sprintf('%0.2f$', $prod['price_usd']==NULL ? $prod['price']/$course : $prod['price_usd']) ?></td>			
	</tr>
	<tr>
		<th>Артикул</th>
		<td><?php echo $prod['artikul'] ?></td>			
	</tr>
	<tr>
		<th>Продавец</th>
		<td><?php echo link_to($seller->getCompany(), 'account/index?user_id='.$seller->getId()) ?></td>			
	</tr>
</table>

<!-- КОНЕЦ ТОВАРА -->